package com.siwei.mes.entity.erp;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * ERP任务单修改记录(RwdextraUpdateLog)实体类
 *
 * @author linzi
 * @since 2024-09-09 20:36:31
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_rwdextra_update_log")
@ApiModel(value = "RwdextraUpdateLog", description = "ERP任务单修改记录")
public class RwdextraUpdateLog implements Serializable {
    private static final long serialVersionUID = -96995501329948244L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "ERP任务单修改记录主键ID", name = "id")
    private Long id;
    /**
     * 任务单id rwdextra表中的frwdh
     */
    @Column(name = "frwdh")
    @ApiModelProperty(value = "任务单id rwdextra表中的frwdh", name = "frwdh")
    private Integer frwdh;
    /**
     * 任务修改前id    rwdextra_extend表的id
     */
    @Column(name = "rwdextra_extend_before_id")
    @ApiModelProperty(value = "任务修改前id    rwdextra_extend表的id", name = "rwdextraExtendBeforeId")
    private Long rwdextraExtendBeforeId;
    /**
     * 任务修改前json
     */
    @Column(name = "rwdextra_extend_before_json")
    @ApiModelProperty(value = "任务修改前json", name = "rwdextraExtendBeforeJson")
    private JSONObject rwdextraExtendBeforeJson;
    /**
     * 任务修改后id    rwdextra_extend表的id
     */
    @Column(name = "rwdextra_extend_after_id")
    @ApiModelProperty(value = "任务修改后id    rwdextra_extend表的id", name = "rwdextraExtendAfterId")
    private Long rwdextraExtendAfterId;
    /**
     * 任务修改后json
     */
    @Column(name = "rwdextra_extend_after_json")
    @ApiModelProperty(value = "任务修改后json", name = "rwdextraExtendAfterJson")
    private JSONObject rwdextraExtendAfterJson;
    /**
     * 配合比修改记录  修改前id   mix_update_log表的id
     */
    @Column(name = "mix_update_before_id")
    @ApiModelProperty(value = "配合比修改记录  修改前id   mix_update_log表的id", name = "mixUpdateBeforeId")
    private Long mixUpdateBeforeId;
    /**
     * 配合比修改前json  对应配合比信息
     */
    @Column(name = "mix_update_before_json")
    @ApiModelProperty(value = "配合比修改前json  对应配合比信息", name = "mixUpdateBeforeJson")
    private JSONObject mixUpdateBeforeJson;
    /**
     * 配合比修改记录  修改后id   mix_update_log表的id
     */
    @Column(name = "mix_update_after_id")
    @ApiModelProperty(value = "配合比修改记录  修改后id   mix_update_log表的id", name = "mixUpdateAfterId")
    private Long mixUpdateAfterId;
    /**
     * 配合比修改后json  对应配合比信息
     */
    @Column(name = "mix_update_after_json")
    @ApiModelProperty(value = "配合比修改后json  对应配合比信息", name = "mixUpdateAfterJson")
    private JSONObject mixUpdateAfterJson;
    /**
     * 创建人
     */
    @Column(name = "creater")
    @ApiModelProperty(value = "创建人", name = "creater")
    private Long creater;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    @Transient
    @ApiModelProperty(value = "创建人")
    private String createrName;

    @Transient
    @ApiModelProperty(value = "任务单额外信息", name = "extrainfo")
    private String extrainfo;

    @Transient
    @ApiModelProperty(value = "任务单号", name = "frwno")
    private String frwno;

    @Transient
    @ApiModelProperty(value = "原工程名称", name = "projectName")
    private String projectName;

    @Transient
    @ApiModelProperty(value = "修改后工程名称", name = "updateProjectName")
    private String updateProjectName;

    @Transient
    @ApiModelProperty(value = "修改后的配合比编号", name = "updatePhb")
    private String updatePhb;

    @Transient
    @ApiModelProperty(value = "客户名称", name = "customerName")
    private String customerName;

    @Transient
    @ApiModelProperty(value = "生产方量", name = "scquantity")
    private String scquantity;

    @Transient
    @ApiModelProperty(value = "计划方量", name = "fJhsl")
    private String fJhsl;

    @Transient
    @ApiModelProperty(value = "完成方量", name = "fhquantity")
    private String fhquantity;

    @Transient
    @ApiModelProperty(value = "施工部位", name = "fjzbw")
    private String fjzbw;

    @Transient
    @ApiModelProperty(value = "砼品种", name = "tpz")
    private String tpz;


    @Transient
    @ApiModelProperty(value = "计划日期", name = "plantime")
    private String plantime;

    @Transient
    @ApiModelProperty(value = "供货起止日期", name = "supplyTime")
    private String supplyTime;;

    @Transient
    @ApiModelProperty(value = "是否过滤历史增补记录", name = "isAddInformation")
    private String isAddInformation;;
}
